package com.myc.cloud.provider.contorller;
import com.myc.cloud.provider.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Classname FirstController
 * @Description
 * @Date 2020-08-23 10:59
 * @Created by myc
 */
@RestController
public class FirstController {

    @Autowired
    HelloService helloService;

    @GetMapping("/hello")
    public String hello(String str){
        return helloService.sayHello(str+System.currentTimeMillis());
    }

}
